package csel.view;

import junit.framework.TestCase;
import org.junit.*;
import csel.model.*;

public class NewGameDialogTester extends TestCase
{
	NewGameDialog ngd;
	
	@Test
	public void testOccupationSmasher()
	{
		ngd = new NewGameDialog();
		
		System.err.println("Please select Smasher and call yourself Nik.");
		assertTrue(ngd.show());
		assertEquals("Nik", ngd.getName());
		assertTrue((ngd.getOccupation() instanceof Smasher));
	}
	
	@Test
	public void testOccupationSummoner()
	{
		ngd = new NewGameDialog();
		
		System.err.println("Please select Summoner and call yourself Hates.");
		assertTrue(ngd.show());
		assertEquals("Hates", ngd.getName());
		assertTrue((ngd.getOccupation() instanceof Summoner));
	}
	
	@Test
	public void testOccupationSneak()
	{
		ngd = new NewGameDialog();
		
		System.err.println("Please select Sneak and call yourself Everyone.");
		assertTrue(ngd.show());
		assertEquals("Everyone", ngd.getName());
		assertTrue(ngd.getOccupation() instanceof Sneak);
	}
	
	@Test
	public void testOccupationCancel()
	{
		ngd = new NewGameDialog();
		System.err.println("Please cancel the Character dialog.");
		assertFalse(ngd.show());
	}
}
